<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
   function filterArray(){
      var arr = [];
      for(var i=0;i<arguments.length;i++){
        if(arguments[i]>10){
            arr.push(arguments[i]);
        }
      }
      return arr;
   }
   console.log(filterArray(21,14,6,11,3,5));
</script>